<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddTypeToFreightWays extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('freight_ways', function (Blueprint $table) {
            $table->tinyInteger('type')->default(1)->comment('类型:(1:三线电机,2:二线电机,3:电磁锁,4:带反馈电磁锁,5履带,6:蛇形货道,7:特殊)');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('freight_ways', function (Blueprint $table) {
            //
        });
    }
}
